import { defineStore } from 'pinia'
import { ref, shallowRef } from 'vue'

export const useStore = defineStore('main', () => {
  const workspaceSvg = shallowRef(null)
  const searchPlugin = shallowRef(null)

  const hasLayoutSider = ref(false)
  const trashcanOpen = ref(false)
  const searchVisible = ref(false)

  const devtoolOpen = ref(false)

  const devtoolupd = ref(function(){})

  return { workspaceSvg, searchPlugin, hasLayoutSider, trashcanOpen, searchVisible, devtoolOpen, devtoolupd }
})
